package com.hengpeng.itfin.persist.impl;

import java.util.Date;

import org.springframework.stereotype.Repository;

import com.hengpeng.common.persist.AbstractDao;
import com.hengpeng.itfin.persist.PaymentDao;
import com.hengpeng.itfinbase.persist.Payment;
import com.hengpeng.itfinbase.persist.Payment.PayStatus;

@Repository
public class PaymentDaoImpl extends AbstractDao<Payment> implements PaymentDao {
	@Override
	public int updateStatus(PayStatus oldStatus, PayStatus newStatus,
			Date updateTime, Date overTime, Long chargemoney, String orderId) {
		return super.exeNamedQuery("payment.updateStatus", new Object[] {newStatus,updateTime,overTime,chargemoney,orderId,oldStatus});
	}
}
